package com.pm.service.dept.impl;

import com.pm.entity.po.dept.DeptType;
import com.pm.mapper.dept.DeptTypeMapper;
import com.pm.service.dept.DeptTypeService;
import com.pm.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptTypeServiceImpl extends BaseServiceImpl<DeptType> implements DeptTypeService {

    private DeptTypeMapper deptTypeMapper;

    @Resource
    private void setBaseMapper(DeptTypeMapper deptTypeMapper) {
        this.deptTypeMapper = deptTypeMapper;
        super.setBaseMapper(deptTypeMapper);
    }

    @Override
    public List<DeptType> getAllDeptType() {
        List<DeptType> depts = deptTypeMapper.getAllDeptType();
        return depts;
    }

    @Override
    public List<DeptType> getDeptTypeNotFive() {
        List<DeptType> depts = deptTypeMapper.getDeptTypeNotFive();
        return depts;
    }

}
